<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<link rel="stylesheet" href="<?php echo base_url('publics/admin');?>/style/styles.css" />
</head>

<body>
<div id="main_right">
	<div id="r_title">
		<div id="r_title_content">
			角色管理 &gt; 角色列表
		</div>
	</div>
	<div class="line_white"></div>
	<div id="r_menu">
		<ul>
			<li><a href="<?php echo base_url('manage/role/insert');?>">增加角色</a></li>
		</ul>
	</div>
	<div id="r_list">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		  	<td height="30">角色ID</td>
			<td>角色名称</td>
			<td>操作功能</td>
		  </tr>
		  <?php if(!empty($error)):?>
          	<tr>
            	<td colspan="8" align="center"><?php echo $error;?></td>
            </tr>
          <?php else:?>
          <?php foreach($arr as $val):?>
		   <tr>
		    <td height="30" style="text-align:left;"><?php echo $val['role_id'];?></td>
			<td style="text-align:left;"><?php echo $val['role_name'];?></td>
			<td>
            	<a href="<?php echo base_url('manage/role');?>/edit?r_id=<?php echo $val['role_id'];?>">编辑</a> 
                | 
                <a href="<?php echo base_url('manage/role');?>/delete?r_id=<?php echo $val['role_id'];?>" onclick="return confirm('真的要删除该数据吗?');">删除</a>  
                | 
                <a href="<?php echo base_url('manage/role');?>/info?r_id=<?php echo $val['role_id'];?>">查看权限</a> 
            </td>
		  </tr>
		 <?php endforeach;?>
		</table>
	</div>
	<div id="pages">
		<?php echo $pager;?>
	</div>
    <?php endif;?>
</div>
</body>
</html>
